package java_dome.base;

import java.util.Arrays;

public class StringDome {
    public static void main(String[] args) throws InterruptedException {
        String str1 = "我 们";
        System.out.println(str1.length());
        System.out.println(str1.replace("我", "你"));
        System.out.println(str1.split(" ")[0]);
        String[] str2 = {"1", "5", "2"};
        Arrays.sort(str2);  // 排序
        System.out.println(str2[0]);
//        Thread.sleep(3*1000);
        for (String str : str2) {
            System.out.println(str);
        }
    }
}
